package com.exmaple.baidumv.thread;

import java.util.Map;

import android.content.Context;
import android.os.Handler;

import com.exmaple.baidumv.info.ConFigFile;
import com.yuelan.codelib.utils.LOG;

public class RankThread extends BaseHttpThread {
	private Context c;

	public RankThread(Context c, Handler handler, Map<String, String> maps) {
		super(c, handler, maps);
		this.c = c;
	}

	@Override
	public void run() {
		String url = ConFigFile.URL_MAIN + "/info/getmainlist";
		LOG.v(getFullUrl(url, maps));
		if (maps.get("type").equals("1")) {
			doCachePost(c, url, "mianlist.info");
		} else {
			doCachePost(c, url, "ranklist.info");
		}
	}
}
